<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,user-scalable=0">
        {block name="page-title"}<title>{$page_title|default='后台'} | {:config('web_site_title')}</title>{/block}
        <link rel="stylesheet" href="__PLUG__/bootstrap/css/bootstrap.min.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/font-awesome/css/font-awesome.min.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/nprogress/nprogress.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/icheck/all.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__ADMIN_CSS__/AdminLTE.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/bootstrap3-dialog/css/bootstrap-dialog.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/jquery-select2/css/select2.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/jquery-select2/css/select2-bootstrap.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/webuploader/webuploader.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/magnify/jquery.magnify.min.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/wang-editor/css/wangEditor.min.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__PLUG__/bootstrap3-editable/css/bootstrap-editable.css?v=20181115006">

        {block name="style"}{/block}
        <link rel="stylesheet" href="__ADMIN_CSS__/skins/skin-baidu.css?v={:config('asset_version')}">
        <link rel="stylesheet" href="__ADMIN_CSS__/style.css?v={:config('asset_version')}">
        <script src="__PLUG__/jquery/jquery.min.js?v={:config('asset_version')}"></script>
        <script src="__ADMIN_JS__/gb2big5.js"></script>
        <style>
            .layui-layer.layui-layer-tips{
                word-break: break-all;
            }
            .main-header{
                max-height: 66px;
            }
            .child-menu{
                display: none;
                color: #73777a;
            }
            .child-menu.activeShow{
                display: block;
            }
            .left_menu_content_ul{
                /* overflow: scroll; */
            }
            .skin-baidu .left_menu_content ul li ul li{
                padding-left: 6px;
            }
            .navbar-custom-menu-nav{
                display: none;
            }
            @media screen and (min-width: 1400px) {
                .navbar-custom-menu-nav {
                    display: block;
                }
            }
            .content-wrapper {
                min-height: 100%;
                background-color: #f0f2f5!important;
            }
            .magnify-modal {
               z-index: 10901 !important;
 
            }


            
        </style>
    </head>
    <body class="hold-transition skin-baidu fixed sidebar-mini">
        <div class="wrapper" id="oneApp">
            {empty name="layer"}
            <header class="main-header">
                <a href="/admin.php" class="logo hidden-xs">
                    <span class="logo-mini"></span>
                    <span class="logo-lg"><img src="{$Think.config.web_site_logo|get_file_url}" style="width:80%" alt=""></span>
                </a>
                <nav class="navbar navbar-static-top">
                    <!-- {empty name="layer"}
                    <div class="content-header profile_details_left">
                    	<ol class="breadcrumb">
                    		{notempty name="location"}
                            {volist name="location" id="v"}
                            <li><a href="{notempty name='$v["url_value"]'}{$v.url_value|url}{else/}javascript:void(0);{/notempty}">{$v.title}</a></li>
                            {/volist}
                            {/notempty}
                    	</ol>
                    </div>
                    {/empty} -->
                    <div class="profile_details_left">
                        <ul class="nav navbar-nav">
                            <li class="dropdown head-dpdn hidden-lg hidden-md hidden-sm pull-left">
                                <a href="#" class="dropdown-toggle" data-toggle="modal" data-target="#apps-modal"><i
                                        class="fa fa-fw fa-th-large"></i>{:lang('主菜单')}</a>
                            </li>
                            <li class="pull-left hidden-lg hidden-sm hidden-md"><a href="javascript:void(0);" class="sidebar-toggle1" data-toggle="push-menu" data-contentWrapper=".left_menu_content" role="button"><i class="fa fa-list"></i> {:lang('打开')}/{:lang('隐藏菜单')} </a></li>
                        </ul>
                    </div>
                    <div class="navbar-custom-menu hidden-xs pull-left navbar-custom-menu-nav">
                        <ul class="nav navbar-nav">
                            <!-- <p class="input-group input-group-sm" style="width:300px;margin:16px">
                                <input type="text" class="form-control"  placeholder="搜索菜单">
                                <span class="input-group-btn">
                                    <button type="button" class="btn btn-default btn-flat">搜索</button>
                                </span>
                            </p> -->
                            {notempty name="topMenus"}
                            {volist name="topMenus" id="menu"}
                                <li class="treeview" style="{$menu['id'] == $location[0]['id'] ?= 'position: relative;z-index: 999;border-bottom:3px solid #209bfa !important;'}">
                                    <a href="javascript:void(0);" data-module-id="{$menu['id']}" data-module="{$menu['module']}" data-controller="{$menu['controller']}" target="_self" class="top-menu treeview}"><i class="{$menu.icon}"></i> {$menu.title}</a>
                                </li>
                            {/volist}
                            {/notempty}
                        </ul>
                    </div>
                    <div class="navbar-custom-menu hidden-xs hidden-sm " >
                        <ul class="nav navbar-nav">
                            {:hook('admin_message')}
                            <!--<li>
                                <div style="display: flex;height:64px;align-items: center;">
                                    <select class="form-control input-sm" id="cont" name="language" >
                                        {foreach name="lang_array" item="v" key="k"}
                                        <option {if($lang_select==$v)} selected{/if} value="{$v}">{$k}</option>
                                        {/foreach}

                                    </select>
                                </div>
                            </li>-->

                            <!--<li><a href="/operation" class="dropdown-toggle" target="_blank"> <i class="fa fa-fw fa-twitch"></i>{:lang('客服系统')}</a></li>-->
                            <li><a href="/index/api/" class="dropdown-toggle" target="_blank"> <i class="fa fa-fw fa-home"></i>API{:lang('文档')}</a></li>
                            <li><a href="javascript:void(0);" class="dropdown-toggle page-reload"> <i class="fa fa-fw fa-refresh"></i>{:lang('刷新页面')}</a></li>
                            <li>
                                <a href="{:url('admin/index/Clear_Cache')}" class="dropdown-toggle ajax-get no-refresh"><i class="fa fa-fw fa-repeat"></i>{:lang('清空缓存')}</a>
                            </li>

                            <li><a href="{:url('admin/index/setting')}" class="dropdown-toggle page-reload"> <i class="fa fa-fw fa-user"></i> {$Think.session.admin_auth.nickname} </a></li>
                            <li><a style="cursor: pointer;" href="{:url('admin/login/signout')}" class="dropdown-toggle"> <i class="fa fa-fw fa-sign-out"></i> {:lang('退出')} </a></li>


                        </ul>
                    </div>
                </nav>
            </header>
            {/empty}
            {empty name="layer"}
            <aside class="main-sidebar  hidden-xs">
                <section class="sidebar">
                    <div class="logos">
                        <a href="/admin.php" class="logo hidden-xs">
                            <span class="logo-mini"></span>
                            <span class="logo-lg"><img src="{$Think.config.web_site_logo|get_file_url}" alt=""></span>
                        </a>
                    </div>
                    <ul class="sidebar-menu" data-widget="tree">
                        <!-- <li class="header">菜单导航</li> -->
                        {notempty name="topMenusAll"}
                        {volist name="topMenusAll" id="menu"}
                        <li class="treeview {$menu['id'] == $location[0]['id'] ?= 'active'}" >
                            <a href="javascript:void(0);" data-module-id="{$menu['id']}" data-module="{$menu['module']}" data-controller="{$menu['controller']}" target="_self" class="top-menu treeview {$menu['id'] == $location[0]['id'] ?= 'active'}"><i class="{$menu.icon}"></i> {$menu.title}</a>
                        </li>
                        {/volist}
                        {/notempty}
                                   <!--  <a href="javascript:void(0);" data-module-id="{$menu['id']}" data-module="{$menu['module']}" data-controller="{$menu['controller']}" target="_self" class="top-menu treeview {$menu['id'] == $location[1]['id'] ?= 'active'}"><i class="{$menu.icon}"></i> {$menu.title}</a> -->
                        <!-- {notempty name="sidebarMenus"}
                            {volist name="sidebarMenus" id="menu"}
                                <li class="treeview child2 {$menu['id'] == $location[1]['id'] ?= 'active'}" onclick="childMenu({$menu['id']},{$sidebarJson})" >
                                   <a href="javascript:void(0);"><i class="{$menu.icon}"></i> {$menu.title}</a>
                                </li>
                            {/volist}
                        {/notempty} -->
                    </ul>
                </section>
            </aside>
            {notempty name="sidebarMenus"}
            <div class="left_menu_content" id="childBuilder">
                <ul class="left_menu_content_ul">
				<!-- <li><div class="son_title">菜单列表</div></li> -->
                {volist name="sidebarMenus" id="menu"}
                    <li class="treeview" >
                        {notempty name="menu.url_value"}
                        
                    	<a class="treeview {$menu['id'] == $location[1]['id']?='active'}" href="{$menu.url_value}" target="{$menu.url_target}"><span>{$menu.title}</span></a>
                    	                    {else/}
                    	<div onclick="menuHide({$menu['id']})" class="son_title" style="display: flex;justify-content: space-between;align-items: center;cursor: pointer;">
                            {$menu.title}
                            <span id="men_{$menu['id']}" style="color: #dcdcdc;"  class="glyphicon {$menu['id'] == $location[1]['id']?'glyphicon-menu-up':'glyphicon-menu-down'}"></span>
                        </div>
                    	{/notempty}
                        
                            {notempty name="menu['child']"}
                        	<ul id="sub_{$menu['id']}" class="{$menu['id'] == $location[1]['id']?'activeShow':''}  child-menu">
                                {volist name="menu['child']" id="submenu"}
                                        <li {if(isset($location[2]) && $submenu['id'] == $location[2]["id"])}class="active"{/if} id="menu-{$menu.id}-{$submenu['id']}">
                                            <a href="{$submenu.url_value}" target="{$submenu.url_target}">{$submenu.title}</a>{neq name="$menu.id" value="10"}<span class="quick_icon pull-right" onclick="add_quick({$submenu['id']})" title="{:lang('添加快捷菜单')}">+</span>{else /}<span class="quick_icon pull-right" onclick="del_quick({$submenu['id']})" title="{:lang('删除快捷菜单')}">×</span>{/neq}
                                        </li>
                        		{/volist}
                            </ul>
                            {/notempty}
                     
                	</li>
                	{/volist}
                </ul>		
            </div>
            {/notempty}
			{/empty}
            <div class="content-wrapper" {eq name="layer" value="1"}style="padding-top:0px;margin-left:0"{/eq}>
            	<div class="content" {eq name="layer" value="1"}style="padding-bottom:0px;"{/eq}>
                        {// 主体内容}
            			{:hook('page_tips')}
                        {block name="content"}{/block}
            	</div>
            </div>

            <div class="control-sidebar-bg"></div>
            <div class="modal fade" id="apps-modal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">×</span></button>
                            <h4 class="modal-title">{:lang('主菜单')}</h4>
                        </div>
                        <div class="modal-body">
                            <div class="row text-center">
                                {notempty name="topMenus"}
                                {volist name="topMenus" id="menu"}
                                <div class="col-xs-4 col-sm-3">
                                    <a class="top-menu btn btn-app {$menu['id'] == $location[0]['id'] ?= 'bg-navy'}" href="javascript:void(0);" data-module-id="{$menu['id']}" data-module="{$menu['module']}" data-controller="{$menu['controller']}" target="_self">
                                        <div class="block-content text-white">
                                            <i class="{$menu.icon} fa-2x"></i>
                                            <div class="font-w600 push-15-t push-15">{$menu.title}</div>
                                        </div>
                                    </a>
                                </div>
                                {/volist}
                                {/notempty}
                            </div>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>
            <script type="text/javascript">
                var lwwan = {
                		'file_upload_url': '{$file_upload_url ? $file_upload_url : url("admin/upload/save", ["dir" => "files", "module" => request()->module()])}',
                        'image_upload_url': '{$image_upload_url ? $image_upload_url : url("admin/upload/save", ["dir" => "images", "module" => request()->module()])}',
                		'WebUploader_swf': '__PLUG__/webuploader/Uploader.swf',
               		'upload_check_url': '{$upload_check_url ? $upload_check_url : url("admin/upload/check")}',
                		'triggers': {$triggers|default=[]|json_encode}, // 触发器集合
                		'field_hide': '{$field_hide|default=""}', // 需要隐藏的字段
                        'field_values': '{$field_values|default=""}',
                		'_field_clear': {$field_clear|default=[]|json_encode},
                		'quick_edit_url': '{$quick_edit_url ? $quick_edit_url : url("quickEdit")}',
                		'curr_url': '{:url("", $Request.route)}',
                        'curr_params': {$Request.param|json_encode|raw},
                		'get_level_data': '{:url("admin/index/getLevelData")}',
                		'top_menu_url': '{:url("admin/menu/getSidebarMenu")}',
                    }                
            </script>
            <script src="__PLUG__/bootstrap/js/bootstrap.min.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/icheck/icheck.min.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/jquery-select2/js/select2.min.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/jquery-select2/js/i18n/zh-CN.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/webuploader/webuploader.min.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/magnify/jquery.magnify.min.js?v={:config('asset_version')}"></script>
			<script src="__PLUG__/other/jquery-ui.min.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/nice-validator/jquery.validator.min.js?local=zh-CN?v={:config('asset_version')}"></script>
            <script src="__PLUG__/wang-editor/js/wangEditor.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/bootstrap3-editable/js/bootstrap-editable.js?v={:config('asset_version')}"></script>
            <script src="__PLUG__/layer/layer.js?v={:config('asset_version')}"></script>
			<script src="__PLUG__/layer/laydate/laydate.js?v={:config('asset_version')}"></script>
            <script type="text/javascript" src="__PLUG__/jquerydaterangepicker/js/moment.min.js"></script>
            <script type="text/javascript" src="__PLUG__/jquerydaterangepicker/js/daterangepicker.min.js"></script>
            <link rel="stylesheet" type="text/css" href="__PLUG__/jquerydaterangepicker/css/daterangepicker.css" />
			<!-- <script src="__PLUG__/layer/laydatePro/laydatePro.min.js?v={:config('asset_version')}"></script> -->
            <script src="__ADMIN_JS__/adminlte.js?v={:config('asset_version')}"></script>
            <script src="__ADMIN_JS__/stars.js?v={:config('asset_version')}"></script>
            <script src="__ADMIN_JS__/form.js?v={:config('asset_version')}"></script>
            <script src="__ADMIN_JS__/table.js?v={:config('asset_version')}"></script>
            <link href="__PLUG__/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" />
            <script src="__PLUG__/bootstrap-select/js/bootstrap-select.min.js"></script>
            <script src="__STATIC__/admin/js/table00.js?v={:config('asset_version')}"></script>
            <script type="text/javascript">
            var api_code = "{:config('api_code')}";//获取配置项的项目序列号               
               
            </script>
            {block name="script"}{/block}
    </body>


</html>
